from django.db import models

# Create your models here.
class Note(models.Model):
    title = models.CharField(max_length=255)
    content = models.TextField()

    #verify_exists need set
    url = models.URLField(verify_exists=False)
    noteType = models.IntegerField()
    markTime = models.DateTimeField(auto_now=True)
    def __str__(self):
        return self.url + '\n' + self.content + '\n'
    
class NoteTag(models.Model):
    name = models.CharField(max_length=255)
    def __str__(self):
        return self.name